package com.cuitrip.business.bill;

import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;

import com.cuitrip.service.R;
import com.lab.app.customui.CustomUiConfig;
import com.lab.app.customui.CustomUiFragmentActivity;

/**
 * Created by baziii on 15/8/18.
 */
public class BillActivity extends CustomUiFragmentActivity  {
    public static final String TAG = "BaseVerticalListActivity";

    public static void start(Context context) {
        if (context != null) {
            context.startActivity(new Intent(context, BillActivity.class));
        }
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState, R.layout.page_container_layout);
        openFragment(new WalletMainFragment(),R.id.container,WalletMainFragment.class.getName());
        SharedPreferences sp = getSharedPreferences("wallet_guide", Context.MODE_PRIVATE);
        boolean isShow =  sp.getBoolean("isShow", true);
        if (isShow) {
            startActivity(new Intent(this, WalletHintActivity.class));
        }
    }



    @Override
    public boolean initCloseTopBar() {
        return true;
    }

    @Override
    public CustomUiConfig initCustomUiConfig() {
        return null;
    }

    @Override
    public void onTopbarLeftPress() {
        onBackPressed();
    }

}
